how to write program for hcf in c